<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>OurClass</title>
    
    
    <script>
    function httpPut(theUrl, data)
	{
		var xmlHttp = new XMLHttpRequest();
		xmlHttp.open( "PUT", theUrl, false );
		var params = "data="+JSON.stringify(data);
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.send(params);
		return xmlHttp.responseText;
	}
	
	function httpPost(theUrl, data)
	{
		var xmlHttp = new XMLHttpRequest();
		xmlHttp.open( "POST", theUrl, false );
		var params = "data="+JSON.stringify(data);
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.send(params);
		return xmlHttp.responseText;
	}
	
	function httpGet(theUrl, data)
	{
		var xmlHttp = new XMLHttpRequest();
		xmlHttp.open( "GET", theUrl+"?data="+JSON.stringify(data), false );
		xmlHttp.send(null);
		return xmlHttp.responseText;
	}
    </script>
    
  </head>

  <body>
    <h1>OurClass Servlet</h1>
	
    
  </body>
</html>
